#ifndef __NET_STRUCT_H__
#define __NET_STRUCT_H__

#include "../ReflectJson.hpp"

#define PARAMETERS int code; std::string msg;
#define EXPANDCALL code, msg

//用户登录
struct UserLoginReq
{
    int id;
    std::string token;

    REFLECT(id, token);
};
struct UserLoginAck
{
    PARAMETERS
    std::string name;
    std::string token;
    int id;

    REFLECT(EXPANDCALL, name, token, id);
};


#endif // __NET_STRUCT_H__